package com.example.crud_demo.business.material.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;
/**
 * @author 金良才
 * @contact  13487200747
 */
public class MaterialDTO {
    @Schema(description = "物料ID，新建时不用提供")
    private Long id; // 物料ID
    @Schema(description = "物料名称")
    private String name; // 物料名称
    @Schema(description = "物料描述")
    private String description; // 物料描述
    @Schema(description = "物料数量")
    private Integer quantity; // 物料数量
    @Schema(description = "乐观锁版本号，新建时不用提供")
    private Integer version; // 乐观锁版本号
    @Schema(description = "创建时间，新建时不用提供，修改时不用提供")
    private Date createTime; // 创建时间
    @Schema(description = "更新时间，新建时不用提供，修改时不用提供")
    private Date updateTime; // 更新时间


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}